package test;

public class Singleton {
	private static Singleton single;
	private Singleton() {};
	
	public Singleton getSingleton() {
		if (single == null) {
			synchronized (Singleton.class) {
				if (single == null) {
					single = new Singleton();
				}
			}
		}
		return single;
	}
	
}
